package com.moefor.clover.dao;

import java.util.List;
import java.util.Set;

import com.moefor.clover.model.Goods;
import com.moefor.clover.model.Market;
import com.moefor.clover.model.enums.StateOfGoods;

public interface GoodsDao extends BaseDao<Goods>{
	public Set<Goods> search(String keyword, Integer pageNum, Integer pageSize, Set<Market> marketSet, StateOfGoods state);
	public Set<Goods> searchByMarket(String marketName, Integer pageNum, Integer pageSize, StateOfGoods state);
	public Set<Goods> searchByMarket(int marketId, Integer pageNum, Integer pageSize, StateOfGoods state);
	public Set<Goods> getByOwner(int ownerId);
}